<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<div class="header">
	<h2>
		&nbsp;&nbsp;ad域配置<span><font color="red">（* 为必填项）</font> </span>
	</h2>
</div>
<form:form commandName="model" cssClass="validate"
	action="app/ldapConfig/save">
	<form:hidden path="id" />
	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">域地址：</td>
				<td class="td2"><form:input path="host" cssClass="required"
						maxlength="50" cssStyle="width:40%" /><font color="blue">（例如：192.168.0.0）</font>
				</td>
			</tr>
			<tr>
				<td class="td1">域端口：</td>
				<td class="td2"><form:input path="port" cssClass="required"
						maxlength="50" cssStyle="width:40%" /> <font color="blue">（默认为
						389）</font></td>
			</tr>
			<tr>
				<td class="td1">域控制器：</td>
				<td class="td2"><form:input path="dc" cssClass="required"
						maxlength="50" cssStyle="width:40%" /><font color="blue">（例如：ad.local）</font>
				</td>
			</tr>
			<tr>
				<td class="td1">登录帐号：</td>
				<td class="td2"><form:input path="adUsername"
						cssClass="required" maxlength="50" cssStyle="width:40%" /><font
					color="blue">（例如：admin@ad.local） 
				</td>
			</tr>
			<tr>
				<td class="td1">密码：</td>
				<td class="td2"><input type="password"
					value="${model.adPassword }" id="adPassword" name="adPassword"
					maxlength="50" cssStyle="width:40%" cssClass="required" />
				</td>
			</tr>

			<tr>
				<td class="td1">系统组织节点：</td>
				<td class="td2"><form:input path="systemOu" maxlength="50"
						cssStyle="width:40%" /><span><font color="blue">（用*号表示所有，留空表示不同步）</font>
				</span></td>
			</tr>
			<tr>
				<td class="td1">用户信息节点：</td>
				<td class="td2"><form:input path="customerUserOu"
						maxlength="50" cssStyle="width:40%" cssClass="required" /><font
					color="blue">（用*号表示所有）</font>
				</td>
			</tr>
			<tr>
				<td class="td1">用户所属客户：</td>
				<td class="td2"><form:hidden path="customerId" /> <isperp:listSelector
						id="customerSelector" url="customer/customer/list"
						dialogWidth="500" dialogHeight="400"
						displayValue="${model.customerName }" name="customerName"
						valueControlId="customerId" displayValueCssClass="required"
						displayValueCssStyle="width:40%">
						<isperp:column name="id" title="id" hidden="true" width="10"></isperp:column>
						<isperp:column name="name" title="名称" width="150">
						</isperp:column>
						<isperp:column name="type" title="类型" width="80">
						</isperp:column>
						<isperp:column name="linkman" title="联系人" width="80">
						</isperp:column>
						<isperp:column name="linktel" title="联系电话" width="80">
						</isperp:column>

					</isperp:listSelector> <font color="blue">（例如：xxx集团）</font></td>
			</tr>
			<tr>
				<td class="td1">排列顺序：</td>
				<td class="td2"><form:input path="orderNum"
						cssClass="number required" />
				</td>
			</tr>

		</tbody>
	</table>

</form:form>
<isperp:buttonList>
	<button class="submit" onclick="isperp.submitForm();return false;">
		<span class="icon icon-save"></span>提交
	</button>
</isperp:buttonList>